package com.bt.table.ppt;

/**
 * Ret_tool_pmId entity. @author MyEclipse Persistence Tools
 */

public class Ret_tool_pmId implements java.io.Serializable {

	// Fields

	private String pm_type;
	private String tool_id_fk;

	// Constructors

	/** default constructor */
	public Ret_tool_pmId() {
	}

	/** full constructor */
	public Ret_tool_pmId(String pm_type, String tool_id_fk) {
		this.pm_type = pm_type;
		this.tool_id_fk = tool_id_fk;
	}

	// Property accessors

	public String getPm_type() {
		return this.pm_type;
	}

	public void setPm_type(String pm_type) {
		this.pm_type = pm_type;
	}

	public String getTool_id_fk() {
		return this.tool_id_fk;
	}

	public void setTool_id_fk(String tool_id_fk) {
		this.tool_id_fk = tool_id_fk;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_tool_pmId))
			return false;
		Ret_tool_pmId castOther = (Ret_tool_pmId) other;

		return ((this.getPm_type() == castOther.getPm_type()) || (this
				.getPm_type() != null && castOther.getPm_type() != null && this
				.getPm_type().equals(castOther.getPm_type())))
				&& ((this.getTool_id_fk() == castOther.getTool_id_fk()) || (this
						.getTool_id_fk() != null
						&& castOther.getTool_id_fk() != null && this
						.getTool_id_fk().equals(castOther.getTool_id_fk())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getPm_type() == null ? 0 : this.getPm_type().hashCode());
		result = 37
				* result
				+ (getTool_id_fk() == null ? 0 : this.getTool_id_fk()
						.hashCode());
		return result;
	}

}